AMD/IOMMU: allocate one device table per PCI segment
authorJan Beulich <jbeulich@suse.com>
Thu, 10 Oct 2019 07:50:00 +0000 (09:50 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 10 Oct 2019 07:50:00 +0000 (09:50 +0200)
commitfd345376a5421827dc2d1beaa8e361b8a7f54540
treee4044a97552b616b39c81178e268a700086c0c46
parent4fc32c22c0588a4972aa9cf82101cc6f7df71016
AMD/IOMMU: allocate one device table per PCI segment

Having a single device table for all segments can't possibly be right.
(Even worse, the symbol wasn't static despite being used in just one
source file.) Attach the device tables to their respective IVRS mapping
ones.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/drivers/passthrough/amd/iommu_init.c